package day012.homework.p4;

public class Test {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.setName("xj");
        s1.setSex("男");
        s1.setAge(31);

        Student s2 = new Student();
        s2.setName("zj");
        s2.setSex("女");
        s2.setAge(29);

        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s1.equals(s1));
        System.out.println(s1.equals(s2));
    }
}
